package cn.blue.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author huihui
 * @since 2022-12-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_house")
public class House extends Model<House> {

    private static final long serialVersionUID = 1L;

    @TableId("house_id")
    private Long houseId;
    /**
     * chengshi
     */
    private String city;
    /**
     * 房租出租方式：0整租/1合租/2不限
     */
    @TableField("house_rental_mode")
    private Integer houseRentalMode;
    @TableField("state")
    private Integer state;
    /**
     * 房屋地址：城市/行政区/小区/地址
     */
    @TableField("house_address")
    private String houseAddress;
    /**
     * 房屋出租面积
     */
    @TableField("house_rental_area")
    private String houseRentalArea;
    /**
     * 房屋出租地址
     */
    @TableField("house_rental_price")
    private BigDecimal houseRentalPrice;
    /**
     * 房屋标签
     */
    @TableField("house_tag")
    private String houseTag;
    /**
     * 是否有电梯0无1有
     */
    @TableField("house_elevator")
    private Integer houseElevator;
    /**
     * 房屋所在楼层
     */
    @TableField("house_floor")
    private String houseFloor;
    @TableField("create_time")
    private Date createTime;
    /**
     * 房屋备注
     */
    @TableField("house_note")
    private String houseNote;


    @Override
    protected Serializable pkVal() {
        return this.houseId;
    }


}
